@charset "UTF-8";
.c-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 1031;
  .panel-heading {
    position: relative;
    .glyphicon-remove {
      position: absolute;
      right: 16px;
      cursor: pointer;
      font-size: 16px;
      line-height: 40px;
    }
  }
  .panel-footer {
    text-align: right;
  }
  .c-dialog-btn {
    &:not(:first-child) {
      margin-left: 10px;
    }
  }
}

/*toast*/
.e-toast {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1031;
  .toast-text {
    padding: 20px;
    border-radius: 5px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 20px;
  }
}

/* 上传 */
.upload-img {
  zoom: 1;
  &:after {
    content: '';
    display: block;
    visibility: hidden;
    clear: both;
  }
  li {
    position: relative;
    float: left;
    width: 90px;
    height: 90px;
    background: #F4F4F6;
    border-radius: 4px;
    margin: 0 9px 9px;
    list-style: none;
    &.upload-btn {
      text-align: center;
      i {
        font-size: 50px;
        color: #D0D2D8;
        line-height: 90px;
      }
      input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
      }
    }
    .img-item {
      position: relative;
      width: 100%;
      height: 100%;
      &:before {
        display: none;
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.49);
      }
      &:hover {
        &:before{
          display: block
        }
        .delete-img {
          opacity: 1;
        }
      }
      p {
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        width: 70px;
        line-height: 90px;
        color: #fff;
        text-align: center;
        cursor: pointer;
        opacity: 0;
        &:hover {
          opacity: 1;
        }
      }
      .delete-img {
        position: absolute;
        display: block;
        width: 24px;
        height: 24px;
        color: #fff;
        background-color: red;
        line-height: 24px;
        text-align: center;
        border-radius: 50%;
        top: -12px;
        right: -12px;
        cursor: pointer;
        opacity: 0;
      }
    }
    img {
      width: 100%;
      height: 100%;
    }
  }
}

.img-select {
  .upload-img li {
    width: 110px;
    height: 110px;
    margin: 9px;
    .img-item {
      input {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;
      }
    }
  }
}

.show-img-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 120px;
  z-index: 1051;
  &:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
  }
  &:after {
    content: '';
    width: 0;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
  }
  .img-box {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 99%;
    max-height: 100%;
  }
  img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
  }
  .glyphicon-remove {
    position: absolute;
    top: 15px;
    right: -33px;
    font-size: 18px;
    line-height: 18px;
    color: #D0D2D8;
    &:hover {
      cursor: pointer;
      color: #fff;
    }
  }
}
.loading-box {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading-gif {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: blue;
  background: linear-gradient(to right,  blue 10%, rgba(255, 255, 255, 0) 90%);
  animation: loading 1s infinite linear;
  &:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background: blue;
    border-radius: 64px 64px 0 0;
  }
  &:after {
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff;
    width: 80%;
    height: 80%;
    border-radius: 50%;
  }
}
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media screen and (max-width: 425px) {
  .show-img-popup {
    padding: 36px;
  }   
  .delete-img {
    opacity: 1 !important;
  }
}

.input-item,
.select-item {
  height: 34px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 5px;
  padding: 5px;
}